﻿#ifndef IOWIDGET_H
#define IOWIDGET_H

#include <QWidget>
#include <QPushButton>
#include "QSimpleLed.h"


class IOWidget : public QWidget
{
    Q_OBJECT
public:
    explicit IOWidget(QWidget *parent = nullptr);
    void initGUI();

public:
    void setINPort(int port, uint32_t value);
signals:
    void outPortChanged(int bit, bool state);
private:
    void on_pushButtonClicked();
private:
    QSimpleLed *m_pLed[8];
    QPushButton *m_pPushBotton[8];

    uint32_t m_inValue;


};

#endif // IOWIDGET_H
